package com.google.code.swingonfire.utility.date;

import java.text.DateFormatSymbols;
import java.util.Calendar;
import java.util.Locale;

public class DateRenderInfoConstantPart extends AbstractDateRenderInfoPart
{

    private final String text;

    public DateRenderInfoConstantPart(String text)
    {
        super(text.length());

        this.text = text;
    }

    public String getText()
    {
        return text;
    }

    @Override
    protected String getValue(Calendar calendar, DateFormatSymbols dateFormatSymbols, Locale locale)
    {
        return text;
    }

}
